package com.lihao.sam.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author Qinheyun
 * @Description: 学生报修单类
 */
@Data
@NoArgsConstructor
public class StudentRepairsList {
    /** 序号*/
    private Integer id;

    /** 报修单号*/
    @ExcelProperty("报修单号")
    private String repairsMark;

    /** 地址*/
    @ExcelProperty("地址")
    private String location;

    /** 报修人*/
    @ExcelProperty("报修人")
    private String repairsName;

    /** 学号*/
    @ExcelProperty("学号")
    private String studentId;

    /** 报修时间*/
    @ExcelProperty("报修时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date repairsTime;

    /** 接待人*/
    @ExcelProperty("接待人")
    private String receiverName;

    /** 报修原因*/
    @ExcelProperty("报修原因")
    private String cause;

    /** 状态  0已处理 1未处理*/
    @ExcelProperty("状态")
    private Integer state;

    public StudentRepairsList(String repairsMark, String location, String repairsName, String studentId, String receiverName, String cause, Integer state) {
        this.repairsMark = repairsMark;
        this.location = location;
        this.repairsName = repairsName;
        this.studentId = studentId;
        this.receiverName = receiverName;
        this.cause = cause;
        this.state = state;
    }
}
